package com.church.elim.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import com.church.elim.domain.DbUser;

@Repository("userDAO")
public class UserDAOImpl implements UserDAO{
	@PersistenceContext
	private EntityManager entityManager;
	@Override
	public DbUser findUser(String name) {
		return entityManager.find(DbUser.class, name);
	}

}
